package com.haiyangwang1.lesson2;


    public class Main {
        public static void main(String[] args) {
// 实例化⼀个Employee对象，并初始化实例变量
            Employee e = new Employee();
            e.name = "张三";
            e.address = "东⼤街11号";
            e.SSN = 999001111;
            e.number = 1;
// 实例化⼀个Salary对象，并初始化实例变量
            Salary s = new Salary();
            s.name = "李四";
            s.address = "天府⼴场物资⼤厦101号";
            s.SSN = 111009999;
            s.number = 2;
            s.salary = 100000.00F;
// 实例化⼀个Hourly对象，并初始化实例变量
            Hourly h = new Hourly();
            h.name = "王⼆";
            h.address = "⾼新区环球中⼼202号";
            h.SSN = 111990000;
            h.number = 3;
            h.hourlyRate = 10.00F;
            h.hoursWorked = 50;
// 发⼯资
//e.computePay(); //不能通过编译！
            System.out.println(s.number + " " + s.computePay());
            System.out.println(h.number + " " + h.computePay());
// 邮寄⽀票 e.mailCheck(); s.mailCheck(); h.mailCheck(); } }
        }
    }
